#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<string.h>
#include<errno.h>
#include<stdbool.h>

typedef int HPDataType;
typedef struct Heap
{
	HPDataType* a;
	int size;
	int capacity;
} HP;

void HeapInit(HP* ph, HPDataType* arr, int size);
void HeapDestroy(HP* ph);

void HeapPrint(HP* ph);

void HeapPush(HP* ph, HPDataType x);
void HeapPop(HP* ph);

bool HeapEmpty(HP* ph);

